<template>
   <div>
        <div class="other">
            <ul>
                <li class="backTodo">
                    <router-link to="/Index">返回Todo</router-link>
                </li>
                <li class="backTime">
                    <router-link to="/BackTime">倒计时</router-link>
                </li>
                <li class="test">
                    <router-link to="/Test">测试代码</router-link>
                </li>
                <li class="test">
                    <a href="https://gitee.com/emotional-transformation/vue-login-todolist.git">Git仓库</a>
                </li>
                <li class="exit">
                    <router-link to="/Login">退出登录</router-link>
                </li>
            </ul>
        </div>
       <div class="username">用户名: {{username}}</div>
       <div class="password">密码: {{password}}</div>
    </div>
</template>

<script>
export default {
    name:'Person',
    data() {
        return {
            username:JSON.parse(localStorage.getItem('save'))[0].username,
            password:JSON.parse(localStorage.getItem('save'))[0].password
        }
    },
}
</script>

<style scoped>
     body {
        background-color: #93afca;
    }
    .other {
        margin: auto;
        top: -10px;
        width: 530px;
        height: 60px;
    }
    ul{
        margin-top: 20px;
    }
    li{
        height: 41px;
    }
   
    .exit {
        width: 150px;
        height: 60px;
        display: inline;
        border: 0;
        color: #fff;
        margin-right: 20px;
    }
    
    .backTodo {
        width: 150px;
        height: 60px;
        display: inline;
        border: 0;
        color: #fff;
        margin-right: 17px;
    }
    a {
        text-decoration: none;
        color: #fff;
        font-size: 20px;
    }
    
    .backTime {
        width: 150px;
        height: 60px;
        display: inline;
        border: 0;
        color: #fff;
        margin-right: 20px;
    }
    .username{
        width: 300px;
        height: 50px;
        text-align: center;
        margin: auto;
        margin-top: 200px;
        font-size: 30px;
        font-weight: 700;
        color: #fff;
    }
    .password{
        width: 300px;
        height: 50px;
        text-align: center;
        margin: auto;
        margin-top: 80px;
        font-size: 30px;
        font-weight: 700;
        color: #fff;
    }
    .test{
        width: 150px;
        height: 60px;
        display: inline;
        border: 0;
        color: #fff;
        margin-right: 20px;
    }
</style>